package com.lj.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.lj.mp.standard.entity.SysStandardEntity;
import com.lj.sys.enums.SysDataScopeType;

/**
 * <p>
 * 数据范围表
 * </p>
 *
 * @author lj
 * @since 2025-08-06 18:19:01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_data_scope")
public class SysDataScope extends SysStandardEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 请求的接口路径
     */
    private String urlPath;

    /**
     * 目标id(用户id或者角色id)
     */
    private Long targetId;

    /**
     * 数据范围
     */
    private SysDataScopeType scope;

    /**
     * 自定义范围(部门id多个逗号分隔)
     */
    private String custom;
}
